package com.yfeng.common.listener;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;


import com.yfeng.common.dao.IDao;
import com.yfeng.common.dao.Param;


@Component
public class SessionListing implements HttpSessionListener {

	private static final Log log = LogFactory.getLog(SessionListing.class);

	@Override
	public void sessionCreated(HttpSessionEvent arg0) {
		log.debug("session被创建");

	}

	@Override
	public void sessionDestroyed(HttpSessionEvent s) {
		IDao dao = null;
		try {
		log.error("Session销毁错误,user is null");

		} catch (Exception e) {
			log.error(e.getMessage());
		}

	}

}
